home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CDICTION / CSMARTTE.H < prev    next >
Text File  |  1990-01-12  |  1KB  |  35 lines

  1. /*****************************************************************************
  2. CSmartTETask
  3.  
  4.     Implements undo for cut, copy, paste, clear, and typing commands.
  5.     Undo is implemented simply by saving off the entire text handle of
  6.     the TEHandle. This is fine for small pieces of text, as in dialogs,
  7.     but for larger pieces of text, a more economical method would be preferred.
  8.  
  9.     by Dan Podwall - you may do anything you please with this code except
  10.     charge for it, with the exception of normal network download charges.
  11.  
  12. SUPERCLASS = CTask
  13. *****************************************************************************/
  14.  
  15. #define _H_CSmartTETask
  16.  
  17. #include "CTask.h"
  18. #include "CSmartEditText.h"
  19.  
  20. struct CSmartTETask : CTask
  21. {
  22.     struct CSmartEditText *itsEditText;
  23.     tTE_Command        itsCommand;
  24.     Handle            undoText;
  25.     Int16            startSel, endSel;
  26.     Boolean            wasDirty;
  27.     
  28.     virtual void ISmartTETask( struct CSmartEditText *theEditText, Int16 firstNameIndex,
  29.                         tTE_Command theCommand);
  30.                         
  31.     virtual void Undo( void);
  32.     
  33.     virtual void Dispose( void);
  34.  
  35. };